﻿using ProductSystem.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProductSystem.BLL
{
    public partial class System_Menu_RoleBll
    {
        /// <summary>
        /// 角色权限
        /// </summary>
        /// <param name="roleId">角色ID</param>
        /// <returns></returns>
        public static List<System_Menu_Role> GetAllList(int roleId)
        {
            List<System_Menu_Role> list = new List<System_Menu_Role>();
            using (EntitiesModel dbContext = new EntitiesModel())
            {
                list = dbContext.System_Menu_Roles.Where(m => m.Role_ID == roleId).ToList();
            }
            return list;
        }
    }
}
